package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.PayChannelEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 用户三方钱包结算记录
 * </p>
 *
 * @author PC
 * @since 2024-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sc_user_account_flow")
public class UserAccountFlow extends SuperEntity<UserAccountFlow> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 预估总收益
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;

    /**
     * 待结算收益
     */
    @TableField("unsettle_amount")
    private BigDecimal unsettleAmount;

    /**
     * 已结算收益
     */
    @TableField("settled_amount")
    private BigDecimal settledAmount;

    /**
     * 已冻结收益
     */
    @TableField("freeze_amount")
    private BigDecimal freezeAmount;

    /**
     * 支付渠道
     * @see PayChannelEnum
     */
    @TableField("pay_channel")
    private PayChannelEnum payChannel;



}
